<ul class="topnav">
    <li><%= link_to "Početna", root_url %>
        <ul class="subnav">
            <li><%= link_to "Projekti", frontend_page_path("projekti") %></li>
            <li><%= link_to "Tutoriali", frontend_tutorial_index_path %></li>
            <li><%= link_to "O nama",  frontend_page_path("o-nama") %></li>
            <li><%= link_to "Statut", frontend_page_path("o-nama") %></li>
        </ul>
    </li>
    <li>
        <%= link_to "Moje novosti", member_root_path %>
        <ul class="subnav">
            <li><%= link_to "Moj profil", current_member %></li>
            <li><%= link_to "Uredi profil", edit_member_path(current_member.id) %></li>
        </ul>
    </li>
    <li>
        <%= link_to "Zajednica", groups_path %>
    </li>
    <li>
    	<% if current_member.count_unread_pms > 0 %>
    		<% pm_link_caption = "Privatne poruke ("+ current_member.count_unread_pms.to_s + ")" %>
    		<b><%= link_to pm_link_caption, pms_path %></b>
    	<% else %>
    		<%= link_to "Privatne poruke", pms_path %>
    	<% end %>
        
        
    </li>
    <li>
        <%= link_to "Članovi", members_path%>
    </li>   
       <li> <%= link_to "Odjavi me", destroy_member_session_path %></li>

          
</ul>



